<div class="form-group">
  <label class="col-sm-2 control-label">
    #(jxrb.message("systemStaffInfo.eMail"))：
  </label>
    #if(action == "added")
    <div class="col-sm-3" id ="addEmail">
      <div id="emaildiv">
        #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"email_type"})
        <select class="form-control m-b" name="seMail">
          #for(x : systemdict_list)
          <option value="#(x.dict_id)"  #if((systemStaffInfo.eMail ??) == x.dict_id) selected #end>#(x.dict_name)</option>
          #end
        </select>
      </div>
      <input name="eMail" class="form-control" type="text" value="#(systemStaffInfo.e_mail ??)" id="eMail0"/>
      <input type="button"  value='#(jxrb.message("action.add"))' id="addE" onclick="addEmails()"/>
    </div>
    #else if(action == "edited")
    <div class="col-sm-3" id ="addEmail">
      #if(systemStaffInfo.e_mail ??)
      
      #for(mail : systemStaffInfo.mailInfo)
      <div id ="divP_#(for.index)">
        <div id="emaildiv" >
          #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"email_type"})
          <select class="form-control m-b" name="seMail">
            #for(x : systemdict_list)
            <option value="#(x.dict_id)"  #if((mail.type ??) == x.dict_id) selected #end>#(x.dict_name)</option>
            #end
          </select>
        </div>
        <input name="eMail" class="form-control" type="text" value="#(mail.value ??)" id="eMail"/>
        #if((for.index) != 0)
          <input type="button" value='#(jxrb.message("action.del"))'  onclick="deleteEmail('#(mail_index)')"/>
        #end
        #if((for.index) == 0)
          <input type="button"  value='#(jxrb.message("action.add"))' id="addE" onclick="addEmails()"/>
        #end
      </div>
      #end
      #else
      <div id ="addEmail">
        <div id="emaildiv" >
          #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"email_type"})
          <select class="form-control m-b" name="seMail">
            #for(x : systemdict_list)
            <option value="#(x.dict_id)"  #if((systemStaffInfo.eMail ??) == x.dict_id) selected #end>#(x.dict_name)</option>
            #end
          </select>
        </div>
        <input name="eMail" class="form-control" type="text" value="" id="eMail0"/>
        <input type="button"  value='#(jxrb.message("action.add"))' id="addE" onclick="addEmails()"/>
      </div>
      #end
    </div>
    #else
      #if(systemStaffInfo.e_mail??)
        #for(mail : systemStaffInfo.mailInfo)
        <div  id ="addEmail" class="col-sm-3">
          <div id="emaildiv" >
            #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"email_type"})
            <select class="form-control m-b" name="seMail">
              #for(x : systemdict_list)
              <option value="#(x.dict_id)"  #if((mail.type ??) == x.dict_id) selected #end>#(x.dict_name)</option>
              #end
            </select>
          </div>
          <input name="eMail" class="form-control" type="text" value="#(mail.value ??)" id="eMail"/>
        </div>
        #end
      #else
        <div  id ="addEmail" class="col-sm-3">
          <div id="emaildiv" >
            #modeltag({tagcode:"jxbrms_systemdict_list",where:"DICTTYPE_ID=?",params:"email_type"})
            <select class="form-control m-b" name="seMail">
              #for(x : systemdict_list)
              <option value="#(x.dict_id)"  #if((systemStaffInfo.eMail ??) == x.dict_id) selected #end>#(x.dict_name)</option>
              #end
            </select>
          </div>  
          <input name="eMail" type="text" class="form-control" value="" size="53" id="eMail"/>
        </div>
      #end
    #end
</div>
<div class="hr-line-dashed"></div>